import sys                                             # import必要的包
from PyQt5.QtWidgets import QApplication, QMainWindow, QComboBox, QVBoxLayout, QLabel, QWidget
import Ui_main                                          # import GUI的.py文件                    
import Func_SerialPort


def get_all_port():
      return 

if __name__ == "__main__":

    app = QApplication(sys.argv)                        
    MainWindow = QMainWindow()          #创建窗体对象              
    ui = Ui_main.Ui_MainWindow()        #创建pyqt设计的窗体对象
    ui.setupUi(MainWindow)              #调用pyqt设计的窗体对像方法，对窗体对象进行初始化设置
    ui.pushButton_refresh.clicked.connect()
    Uart = Func_SerialPort.SerialObj()
  
    portlist = Uart.get_all_port()
    print(portlist)
    MainWindow.show()                   #显示窗体对象
    sys.exit(app.exec_())